﻿<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%template _header%>
<script language="javascript" src="/support/editor/script_common.js"></script>
<script language="javascript" src="/support/editor/editor_function.js"></script>
<script type="text/javascript">
function OnEnter(field){ if( field.value == field.defaultValue ) { field.value = "";field.style.color="#333";} }
function OnExit(field){ if( field.value == "" ) { field.value = field.defaultValue;field.style.color="#aaa";}}
</script>
<div class="layout-cols2">
	<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
			<div class="panneltabs">
			 <%template _logmenu%>
	
				</div>	
   <div class="pannelbody">	
	
 <%csharp%>if( IsPost){ <%/csharp%>
	    
	    <%template _MsgBox%>
	    
	    <%csharp%> } else { <%/csharp%>

	        <div class="content">
	            <br />
	            <form id="Form1" name="topicform" method="post" action="">
	             <table class="editboxstyle">
	               
	                <tbody>
	                <tr>
                        <td>标题：</td>
	                    <td>
	                        <input type="text" name="ttitle" size="60" class="inputstyle"  value="{LogTopicData.Title}"/>
	                        &nbsp;&nbsp;<span>标题长度必须在{Config.TitleMinSize}-{Config.TitleMaxSize}之间</span>
	                    </td>
	                 </tr>
	                     
	                 <tr valign="top">
                         <td>内容：</td>
                         <td>
                            <textarea id="uchome-ttHtmlEditor" name="textcontent" cols="90" rows="15" style="display:none">{LogTopicData.Body}
                            </textarea>  
                            <iframe src="/support/editor/editor.htm" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:600px;border: 1px solid #C5C5C5;" height="400"></iframe>  
                            <p>内容长度必须在{Config.TopicMinSize}-{Config.TopicMaxSize}之间</p>
	                     </td>
    	            </tr>
    	            <tr>
    	                <td>&nbsp;</td>
    	                <td align="right"> 
    	                    
	                            <a href="#" onclick="javascript:edit_save();CheckForm();" class="yellowbutton">提交</a>
                           
                        </td>
    	            </tr>   
	                </tbody>
	                </table>             
	            </form>
	            <script type="text/javascript">
	                function CheckForm()
	                {
	                    _$('topicform').submit();
	                }
	            </script>
	            <br />
	        </div>

	    
	    <%csharp%> } <%/csharp%>
		
	
</div>
</div>
</div></div>
</div>


<%template _footer%>